Accurately Computing log(1− exp(− |a|)) Assessed by the Rmpfr package

نویسنده

  • Martin Mächler
چکیده

In this note, we explain how f(a) = log(1− e−a) = log(1− exp(−a)) can be computed accurately, in a simple and optimal manner, building on the two related auxiliary functions log1p(x) (= log(1 + x)) and expm1(x) (= exp(x)− 1 = ex − 1). The cutoff, a0, in use in R since 2004, is shown to be optimal both theoretically and empirically, using Rmpfr high precision arithmetic. As an aside, we also show how to compute log (

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Arbitrarily Accurate Computation with R: The Rmpfr Package

The R package Rmpfr allows to use arbitrarily precise numbers instead of R’s double precision numbers in many R computations and functions. This is achieved by defining S4 classes of such numbers and vectors, matrices, and arrays thereof, where all arithmetic and mathematical functions work via the (GNU) MPFR C library, where MPFR is acronym for“Multiple Precision Floating-Point Reliably”. MPFR...

متن کامل

A Review of Numerical Methods for Computing Point and Interval Estimates by S-PLUS Package

For computing different point estimates such as method of moment and maximum like-lihood estimates and different interval estimates (classical confidence interval, unbi-ased confidence interval, HPD interval), we may deal with the equations which need be solved numerically. In this paper, some numerical methods for solving these type of equations are reviewed in S-PLUS package. Various examples...

متن کامل

Arithmetic circuits: A chasm at depth three four

We show that, over Q, if an n-variate polynomial of degree d = nO(1) is computable by an arithmetic circuit of size s (respectively by an algebraic branching program of size s) then it can also be computed by a depth three circuit (i.e. a ΣΠΣ-circuit) of size exp(O( √ d log d log n log s)) (respectively of size exp(O( √ d log n log s))). In particular this yields a ΣΠΣ circuit of size exp(O( √ ...

متن کامل

Exp-Kumaraswamy Distributions: Some Properties and Applications

In this paper, we propose and study exp-kumaraswamy distribution. Some of its properties  are derived, including the density function, hazard rate function, quantile function, moments,  skewness  and kurtosis.   Adata set isused to illustrate an application of the proposed distribution. Also, we obtain a new distribution by transformation onexp-kumaraswamy distribution.   New distribution is an...

متن کامل

Investigation of the Specific Ion Interactions and Determining Protonation Constant of 3,5-Dihydroxy-2-(3,4,5-trihydroxybenzoyl)oxy-6-[(3,4,5-trihydroxybenzoyl)oxymethyl] oxan-4-yl] 3,4,5-trihydroxybenzoate at Different Ionic Strength

In this research, the protonation constant value of tannic acid was determined at 25 °C and different ionic strengths (0.1 to 0.7 mol/dm3 NaCl) using potentiometric titration technique. The dependence of protonation constant on ionic strength was modeled and discussed by a Debye-Hückel type equation. Then, based on the obtained data from experiments, the minimizing Sum o...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2012